Vela IF820 Click Example.
Description
This example demonstrates the use of Vela IF820 Click board by processing data from a connected BT Classic device.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger.
Application Task
Application task is split in few stages:
- VELAIF820_POWER_UP: Powers up the device and checks the communication.
- VELAIF820_CONFIG_EXAMPLE: Restores factory settings, sets BT Classic flags and reads the BT address and name.
- VELAIF820_EXAMPLE: Performs a BT terminal example by processing all data from a connected BT Classic device and sending back an adequate response messages.
Additional Function
- static void velaif820_clear_app_buf ( void )
- static void velaif820_log_app_buf ( void )
- static err_t velaif820_process ( velaif820_t *ctx )
- static err_t velaif820_wait_packet ( velaif820_t *ctx, uint8_t timeout_s, uint8_t rsp_flag, uint8_t *cmd_code )
- static err_t velaif820_power_up ( velaif820_t *ctx )
- static err_t velaif820_config_example ( velaif820_t *ctx )
- static err_t velaif820_example ( velaif820_t *ctx )
- Note
- We have used the Serial Bluetooth Terminal smartphone application for the test. A smartphone and the Click board must be paired in order to exchange messages with each other.
- Author
- Stefan Filipovic